<template>
	<view>
		<uni-collapse>
			<block v-for="(item, index) in list" :key="index">
				<uni-collapse-item :title="item.title" :show-animation="true">
					<text class="content">{{item.content}}</text>
				</uni-collapse-item>
			</block>
		</uni-collapse>
		<view class="body">
			<button type="default" class="user-set-btn"  @tap="openFeedback">意见反馈</button>
		</view>
	</view>
</template>

<script>
	import uniCollapseItem from '../../components/uni-collapse-item/uni-collapse-item.vue'
	import uniCollapse from '../../components/uni-collapse/uni-collapse.vue'
	export default {
		data() {
			return {
				list: [
					{
						title: '客服什么时候上线',
						content: '1',
					},
					{
						title: '忘记账号/昵称/秘密怎么办？',
						content: '2',
					},
					{
						title: '怎么搜索/查找/关注/取关用户?',
						content: '3',
					},
				]
			}
		},
		components: {
			uniCollapseItem,
			uniCollapse,
		},
		methods: {
			openFeedback() {
				uni.navigateTo({
					url: '../user-feedback/user-feedback'
				})
			}
		}
	}
</script>

<style scoped>

	@import  '../../common/form.css';
	.content {
		padding: 15px;
		font-size: 14px;
		line-height: 20px;
		background-color: #f9f9f9;
		color: #666;
	}
</style>
